import 'package:flutter_test/flutter_test.dart';
import 'package:media_kit_libs_android_video/media_kit_libs_android_video.dart';
import 'package:media_kit_libs_android_video/media_kit_libs_android_video_platform_interface.dart';
import 'package:media_kit_libs_android_video/media_kit_libs_android_video_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockMediaKitLibsAndroidVideoPlatform
    with MockPlatformInterfaceMixin
    implements MediaKitLibsAndroidVideoPlatform {

  @override
  Future<String?> getPlatformVersion() => Future.value('42');
}

void main() {
  final MediaKitLibsAndroidVideoPlatform initialPlatform = MediaKitLibsAndroidVideoPlatform.instance;

  test('$MethodChannelMediaKitLibsAndroidVideo is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelMediaKitLibsAndroidVideo>());
  });

  test('getPlatformVersion', () async {
    MediaKitLibsAndroidVideo mediaKitLibsAndroidVideoPlugin = MediaKitLibsAndroidVideo();
    MockMediaKitLibsAndroidVideoPlatform fakePlatform = MockMediaKitLibsAndroidVideoPlatform();
    MediaKitLibsAndroidVideoPlatform.instance = fakePlatform;

    expect(await mediaKitLibsAndroidVideoPlugin.getPlatformVersion(), '42');
  });
}
